package com.zb.zeus.system.api.domain.dto;

import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotBlank;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * 请求短信验证码
 * @author liangfan
 * @date 2021/07/14 14:10
 **/
@ApiModel("请求短信验证码")
@Data

public class GetSmsCodeDTO {

    @ApiModelProperty(value = "发送电话号码",required = true)
    @NotBlank(message = "电话号码不可以为空")
    private String phoneNum;

    @ApiModelProperty(value = "验证码失效时间。单位min",required = true)
    @Min(value = 0,message = "验证码失效时间不能小于等于0min")
    @Max(value = 10,message = "验证码失效时间不能大于10min")
    private Integer expireTime;

    @ApiModelProperty(value = "自定义扩展", required = false)
    private String extend;
}
